package com.wq;

import com.wq.ui.MainFrame;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;

/**
 * @author wq
 * 2020/12/19 - 17:43
 */
@SpringBootApplication
public class FlightChessApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = new SpringApplicationBuilder(FlightChessApp.class).headless(false).run(args);
        EventQueue.invokeLater(() -> {
            MainFrame mainFrame = ctx.getBean(MainFrame.class);
            mainFrame.init();
        });
    }
}
